/*
 * @Author: your name
 * @Date: 2020-10-15 19:32:59
 * @LastEditTime: 2021-01-15 16:26:47
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \longh_h5\src\apis\user\MyConcerns.js
 */
import request from '@/utils/request'


//查询分类级别1级空getByParent
export function productCategory(params) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/productCategory/getByParent',
        method: 'GET',
        params
    })
}

//添加关注
export function addAttention(params) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/userAttention/add',
        method: 'POST',
        data: params
    })
}

//获取已关注我-企业分页列表
export function getConcernsMeList(params) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/userAttention/getAttentionForMeList',
        method: 'POST',
        data: params
    })
}

//获取我的关注表-企业分页列表
export function getMyConcernsList(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/userAttention/getEntBaseInfoPageList',
        method: 'POST',
        data
    })
}

//获取我的关注表-产品需求分页列表
export function getMaterialsDemandList(params) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/userAttention/getMaterialsDemandPageList',
        method: 'POST',
        data: params
    })
}

//获取我的关注表-产品供应分页列表
export function getProductInfoPageList(params) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/userAttention/getProductInfoPageList',
        method: 'POST',
        data: params
    })
}
//获取我的关注表-产解决方案分页列表
export function getSolutionInfoPageList(params) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/userAttention/getSolutionInfoPageList',
        method: 'POST',
        data: params
    })
}
//取消关注
export function cancelConcerns(params) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/userAttention/update',
        method: 'POST',
        data: params
    })
}

//企业取消关注
export function cancelAttention(params) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/user/EntBaseInfo/attentionEnt',
        method: 'POST',
        data: params
    })
}
//产品类别
export function getPageList(params) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/user/userAttentionCategory/getPageList',
        method: 'POST',
        data: params
    })
}
//企业取消关注
export function add(params) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/user/userAttentionCategory/add',
        method: 'POST',
        data: params
    })
}

///productCategory/getPageList
//企业取消关注
export function getByParent(params) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/productCategory/getByParent',
        method: 'Get',
        params
    })
}